x^2 is the inner function